package motionsApp.client;

import java.util.List;
import motionsApp.shared.MotionDTO;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The async counterpart of <code>GreetingService</code>.
 */
public interface MotionsServiceAsync {
	void addNewMotion(List<MotionDTO> motions, AsyncCallback<String> callback);
	void getMotions(AsyncCallback<List<MotionDTO>> callback);
	void getRandomMotion(AsyncCallback<MotionDTO> callback);	
	void updateMotion(MotionDTO motion, AsyncCallback<Void> callback);		
}
